﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MvcEngine.Core.Validation;

namespace MvcEngine.Gallery.Models
{
    public class GalleryImage
    {
        public Guid Id { get; set; }

        [LengthValidator("GalleryImageNameLengthValidator", 256)]
        [RequiredFieldValidator("GalleryImageNameRequiredValidator")]
        public string Name { get; set; }

        [LengthValidator("GalleryImageUrlLengthValidator", 256)]
        public string Url { get; set; }

        public string Type { get; set; }

        public string Description { get; set; }

        public bool Visible { get; set; }

        public Guid? CreatedBy { get; set; }

        public DateTime CreatedDate { get; set; }

        public Guid? ModifiedBy { get; set; }

        public DateTime ModifiedDate { get; set; }
    }
}
